package org.itboys.mobile.dto.wallet;

import org.itboys.mobile.dto.common.MobileBaseDto;

import java.math.BigDecimal;

/**
 * Created by zhangyang on 2017/12/20.
 * 圣代_钱包_变动记录_dto
 */
public class SundayWalletRecordDto extends MobileBaseDto {


    //变动的类型:
    // 账户余额(1-充值,2-提成,3-购物使用,4-提现),
    //积分(5-积分兑换,6-购物获得,7-登录获得,8-评论获得,9-分享获得),
    //爱购币(10-抵扣,11-购物获得,12-分享商品获得,13-展示到社区获得,14-评论获得)
    private Integer type;
    private BigDecimal amount;//记录金额/分数/爱购币数量
    private String orderNo;//订单号
    private String remark;//备注
    //提现字段
  //  private String accountNo;//提现账户
    private Integer accountStatus;//提现状态:1-已申请,2已通过,3-已驳回
    //private Integer accountType;//账户类别

    //private String cashUserName;//提现用户的登录账户
  //  private String cashNickName;//提现用户昵称
    public SundayWalletRecordDto() {
    }

    public SundayWalletRecordDto(long id, String createTime, String createDate, Integer type, BigDecimal amount, String orderNo, String remark) {
        super(id, createTime, createDate);
        this.type = type;
        this.amount = amount;
        this.orderNo = orderNo;
        this.remark = remark;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getAccountStatus() {
        return accountStatus;
    }

    public void setAccountStatus(Integer accountStatus) {
        this.accountStatus = accountStatus;
    }




    public String getTypeStr(){
        String typeStr= "";
        if(type==null)return typeStr;
        switch (type) {
            case 1:
                typeStr="充值";
                break;
            case 2:
                typeStr="提成";
                break;
            case 3:
                typeStr="购物使用";
                break;
            case 4:
                typeStr="提现";
                break;
            case 5:
                typeStr="积分兑换";
                break;
            case 6:
                typeStr="购物获得";
                break;
            case 7:
                typeStr="登录获得";
                break;
            case 8:
                typeStr="评论获得";
                break;
            case 9:
                typeStr="分享获得";
                break;
            case 10:
                typeStr="购物使用";
                break;
            case 11:
                typeStr="购物获得";
                break;
            case 12:
                typeStr="分享商品获得";
                break;
            case 13:
                typeStr="展示到社区获得";
                break;
            case 14:
                typeStr="评论获得";
                break;
            case 15:
                typeStr="贝壳充值";
                break;
            case 16:
                typeStr="贝壳消费";
                break;
            default:
                break;
        }
        return typeStr;
    }
    public String getAccountStatusStr(){
        String accountStatusStr= "";
        if(accountStatus==null)return accountStatusStr;

        switch (accountStatus) {
            case 1:
                accountStatusStr="待审核";
                break;
            case 2:
                accountStatusStr="已通过";
                break;
            case 3:
                accountStatusStr="已驳回";
                break;
            default:
                break;
        }
        return accountStatusStr;
    }



    public String getInfo(){
        return "特殊字段说明,accountStatus:提现状态(1申请中2已通过3已驳回）";
    }
}
